import React, {Component} from 'react';
import {ListView, Text, View, Button, Alert, TouchableOpacity, Image} from 'react-native';
import chjStyle from '../../CustomStyle';

export default class ModuleTextItem extends React.Component
{
  // 渲染时调用
  // 三个按钮
  render() {
    return (
        <TouchableOpacity
        style={[chjStyle.textItem]}
        onPress={this.props.clickedTextItem}>
          <Image style={chjStyle.textItemIcon} source={this.props.icon}/>
          <Text style={chjStyle.textItemText}>{this.props.text}</Text>
        </TouchableOpacity>
    );
  }
}
